<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1 @click="getChange">{{msg}}</h1>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                msg: "Hello Vue!"
            },
            methods: {
                getChange() {
                    setTimeout(() => {
                        this.msg = "嘿嘿嘿";
                    }, 2000);
                }
            }
        });
    </script>
</body>

</html>